package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.MenuDao;
import com.itheima.domian.Menu;
import com.itheima.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author althle
 * @create 08-22-9:26
 * @功能
 * @注释
 */

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    @Override
    public List<Menu> findAll() {
        return menuDao.findAll();
    }

    @Override
    public List<Menu> findMenuByParentId(String path) {

        return menuDao.findMenuByParentId(path);
    }

    @Override
    public List<Menu> findMenuByRoleId(Integer id) {
        return menuDao.findMenuByRoleId(id);
    }

    @Override
    public void changePassword(String password,String username) {
        menuDao.changePassword(password,username);
    }


}
